#include "../source/server.hpp"

int main()
{
    
    // Buffer buf;
    // std::string tmp;
    // tmp = buf.ReadAsStringAndPop(buf.ReadAbleSize());
    // std:: cout << tmp << std::endl;

    Buffer buf;
    std::string str = "hello!!";
    buf.WriteStringAndPush(str);

    Buffer buf1;
    buf1.WriteBufferAndPush(buf); 

    std::string tmp = buf1.ReadAsStringAndPop(buf1.ReadAbleSize());

    std::cout << tmp << std::endl;
    std::cout << buf1.ReadAbleSize() << std::endl;
    std::cout << buf.ReadAbleSize() << std::endl;
    return 0;
}